﻿<%@ Page Title="" Language="C#" MasterPageFile="../../masterPage/admin/OrdinarySupplier.master"
    AutoEventWireup="true" CodeFile="SupplierItem.aspx.cs" Inherits="Trade_Events_event_item" %>

<%@ MasterType VirtualPath="~/masterPage/admin/Supplier.master" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
    </telerik:RadAjaxLoadingPanel>  
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlFeedback">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlFeedback"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
           
            <telerik:AjaxSetting AjaxControlID="rptBindInquiry">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rptBindInquiry"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <table>

     
        <tr>
            <td>
                <asp:Repeater ID="rptBindInquiry" runat="server" DataSourceID="SqlDataSource2" OnItemCommand="rptBindInquiry_ItemCommand">
                    <ItemTemplate>
                        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
                            <table>
                            
                            <tr>
                              
                               询盘：  <asp:Literal ID="Literal1" Text='<%# Eval("PartName") %>' runat="server"></asp:Literal>
                               &nbsp; &nbsp;<asp:Literal ID="Literal4" Text='<%# Eval("PartModelName") %>' runat="server"></asp:Literal>
                               <br />
                             </tr>
                            

                                
                                <tr>
                                    <td style="vertical-align: top">
                                        <telerik:RadDockZone ID="RadDockZone2" runat="server" Orientation="Vertical" Width="400px"
                                            MinHeight="400px">
                                            <telerik:RadDock ID="RadDock1" runat="server" Title="技术细节" Width="400px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1" cellspacing="1" cellpadding="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="150" />
                                                            <col width="250" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                采购类型
                                                            </td>
                                                            <td>
                                                                <%#Eval("InquiryType") == "1"? "通用零部件采购": "图纸加工"%>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件类型
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal2" Text='<%# GetProcessName(Eval("PartModelName").ToString(),Convert.ToInt32(Eval("InquiryType").ToString())) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件名称
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="ltlPartName" Text='<%# Eval("PartName") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件编号
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal3" Text='<%# Eval("PartNumber") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件模型/图纸
                                                            </td>
                                                            <td>
                                                                <asp:LinkButton ID="lbtDownloadDwg" runat="server" CommandName="LoadDwg" CommandArgument='<%# Eval("PartModelFile") %>'
                                                                    Enabled='<%# Eval("PartModelFile") == ""? false: true%>' ForeColor="Blue" Font-Underline="true"
                                                                    Text="下载" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件材料
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal5" Text='<%# Eval("PartMaterial") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件说明
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal6" Text='<%# Eval("PartDescription") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock6" runat="server" Title="商务细节" Width="400px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1" cellspacing="1" cellpadding="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="150" />
                                                            <col width="250" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                要求报价的采购数量
                                                            </td>
                                                            <td>
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            数量1：
                                                                       
                                                                            <asp:Literal ID="Literal7" Text='<%# Eval("Quantity1") %>' runat="server"></asp:Literal><br />
                                                                       
                                                                            数量2：
                                                                        
                                                                            <asp:Literal ID="Literal8" Text='<%# Eval("Quantity2")%>' runat="server"></asp:Literal><br />
                                                                        
                                                                            数量3：
                                                                        
                                                                            <asp:Literal ID="Literal9" Text='<%# Eval("Quantity3") %>' runat="server"></asp:Literal><br />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                采购单位
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal10" Text='<%# Eval("Unit") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                报价期限
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal11" Text='<%#String.Format("{0:d}", Eval("ExpireDate")) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                授盘期限
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal12" Text='<%#String.Format("{0:d}", Eval("AssignDate")) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                交货期限
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal13" Text='<%#String.Format("{0:d}", Eval("DeliveryDate")) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                预付额度
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal14" Text='<%# Eval("PrepaidAmount") + "% 总额" %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                付款方式
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal15" Text='<%# Eval("PaymentMethod") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                报价币种
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal16" Text='<%# GetCurrencyName(Eval("Currency").ToString()) %>'
                                                                    runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock7" runat="server" Title="运输细节" Width="400px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1" cellspacing="1" cellpadding="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="150" />
                                                            <col width="250" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                运输费用
                                                            </td>
                                                            <td>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                详细地址
                                                            </td>
                                                            <td>
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            街道
                                                                        </td>
                                                                        <td>
                                                                           
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            地区
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal20" Text='<%# Eval("DeliveryProvince") %>'
                                                                                runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            国家
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal19" Text='<%# Eval("DeliveryCountry") %>' runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            邮政编码
                                                                        </td>
                                                                        <td>
                                                                            <asp:Literal ID="Literal18" Text='<%# Eval("DeliveryPostcode") %>' runat="server"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                运输说明
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal17" Text='<%# Eval("DeliveryComment") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock8" runat="server" Title="其他" Width="400px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1" cellspacing="1" cellpadding="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="150" />
                                                            <col width="250" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                询价目的
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal23" Text='<%# Eval("PurchasePurpose") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                零部件用途
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="Literal22" Text='<%# Eval("PartWhereUsed") %>' runat="server"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                        </telerik:RadDockZone>
                                    </td>
                                    <td style="vertical-align: top">
                                        <telerik:RadDockZone ID="RadDockZone1" runat="server" Orientation="Vertical" Width="300px"
                                            MinHeight="400px">
                                            <telerik:RadDock ID="RadDock2" runat="server" Title="采购商信息" Width="300px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1">
                                                        <colgroup>
                                                            <col align="right" style="background-color: Gray" width="100" />
                                                            <col width="200" />
                                                        </colgroup>
                                                        <tr>
                                                            <td>
                                                                采购商星级
                                                            </td>
                                                            <td>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                采购商名称
                                                            </td>
                                                            <td>
                                                                
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                采购商地址
                                                            </td>
                                                            <td>
                                                                
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                注册时间
                                                            </td>
                                                            <td>
                                                               
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock9" runat="server" Title="零件图片" Width="300px" Height="200px"
                                                CloseText="关闭" CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开"
                                                EnableRoundedCorners="true" Collapsed="false" Resizable="false" Pinned="true"
                                                EnableDrag="false">
                                                <ContentTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <!--delete by jiang
                                <img src='<--%# Page.ResolveUrl((Eval("PartThumbnail") == ""? "icon_noimage.jpg": Eval("PartThumbnail"))） %>' alt="零件图片" />
                                -->
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                            <telerik:RadDock ID="RadDock10" runat="server" Title="描述与附件" Width="300px" CloseText="关闭"
                                                CollapseText="收起" DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                                <ContentTemplate>
                                                    <table border="1">
                                                        <tr>
                                                            <td>
                                                                <asp:Literal ID="Literal26" Text='<%# Eval("RefAttachment") %>' runat="server"></asp:Literal><br />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                        </telerik:RadDockZone>
                                    </td>
                                </tr>
                            </table>
                        </telerik:RadDockLayout>
                    </ItemTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XunPanConnectionString %>"
        SelectCommand="SELECT * FROM [vw_XPInquiryQuotes] WHERE ([InquiryID] = @InquiryID )">
        <SelectParameters>
            <asp:Parameter Name="InquiryID" DbType="Guid" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XunPanConnectionString %>"
        SelectCommand="SELECT * FROM [vw_XPInquiryDetail] WHERE ([InquiryID] = @InquiryID)">
        <SelectParameters>
            <asp:Parameter Name="InquiryID" DbType="Guid" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:XunPanConnectionString %>"
        SelectCommand="SELECT * FROM [vw_XPQuoteDetail] WHERE ([QuoteID] = @QuoteID)">
        <SelectParameters>
            <asp:Parameter Name="QuoteID" DbType="Guid" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
